﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 门诊发票信息
    /// </summary>
    public partial class RegTbOutpatientInvoice
    {
        /// <summary>
        /// 发票ID
        /// </summary>
        public long InvoiceId { get; set; }
        /// <summary>
        /// 退票发票ID
        /// </summary>
        public long? ReturnInvoiceId { get; set; }
        /// <summary>
        /// 挂号流水号
        /// </summary>
        public long? RegNo { get; set; }
        /// <summary>
        /// 患者卡号类型
        /// </summary>
        public string? CardType { get; set; }
        /// <summary>
        /// 患者卡号
        /// </summary>
        public string? CardNo { get; set; }
        /// <summary>
        /// 患者门诊号
        /// </summary>
        public string? OutpatientNo { get; set; }
        /// <summary>
        /// 发票号
        /// </summary>
        public long? InvoiceNo { get; set; }
        /// <summary>
        /// 患者ID
        /// </summary>
        public long PatId { get; set; }
        /// <summary>
        /// 患者新ID
        /// </summary>
        public long NewPatId { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string? PatName { get; set; }
        /// <summary>
        /// 交易类型
        /// </summary>
        public int? ChargeType { get; set; }
        /// <summary>
        /// 发票前缀
        /// </summary>
        public string? InvoicePrefix { get; set; }
        /// <summary>
        /// 发票标签
        /// </summary>
        public string? InvoiceLabel { get; set; }
        /// <summary>
        /// 发票信息
        /// </summary>
        public string? InvoiceInfo { get; set; }
        /// <summary>
        /// 操作人员编号
        /// </summary>
        public int? OpCode { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OpTime { get; set; }
        /// <summary>
        /// 是否打印标记
        /// </summary>
        public int? IsPrint { get; set; }
        /// <summary>
        /// 打印人员编号
        /// </summary>
        public int? Printer { get; set; }
        /// <summary>
        /// 打印时间
        /// </summary>
        public DateTime? PrintTime { get; set; }
        /// <summary>
        /// 总费用
        /// </summary>
        public decimal? TotalAmount { get; set; }
        /// <summary>
        /// 大写总金额
        /// </summary>
        public string? CapitalAmount { get; set; }
        /// <summary>
        /// 个人自费
        /// </summary>
        public decimal? OwnFee { get; set; }
        /// <summary>
        /// 医保结算范围总额
        /// </summary>
        public decimal? InsuranceTotal { get; set; }
        /// <summary>
        /// 医保现金支付总额
        /// </summary>
        public decimal? InsuranceCashTotal { get; set; }
        /// <summary>
        /// 交易费用总额
        /// </summary>
        public decimal? CostTotal { get; set; }
        /// <summary>
        /// 分类支付金额
        /// </summary>
        public decimal? Flpay { get; set; }
        /// <summary>
        /// 统筹支付总额
        /// </summary>
        public decimal? PubPay { get; set; }
        /// <summary>
        /// 附加支付总额
        /// </summary>
        public decimal? AppendPay { get; set; }
        /// <summary>
        /// 当年账户支付总额
        /// </summary>
        public decimal? CurrAccountPay { get; set; }
        /// <summary>
        /// 历年账户支付总额
        /// </summary>
        public decimal? LastAccountPay { get; set; }
        /// <summary>
        /// 当年账户余额
        /// </summary>
        public decimal? CurrAccountBalance { get; set; }
        /// <summary>
        /// 历年账户余额
        /// </summary>
        public decimal? LastAccountBalance { get; set; }
        /// <summary>
        /// 工本费
        /// </summary>
        public decimal? HisCardFee { get; set; }
        /// <summary>
        /// 应付金额
        /// </summary>
        public decimal? PayFee { get; set; }
        /// <summary>
        /// 现金总额
        /// </summary>
        public decimal? CashFee { get; set; }
        /// <summary>
        /// 预收金额
        /// </summary>
        public decimal? ReceiveAmount { get; set; }
        /// <summary>
        /// 找零
        /// </summary>
        public decimal? ChangeAmount { get; set; }
        /// <summary>
        /// 分币误差
        /// </summary>
        public decimal? ErrorCents { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 1挂号 2收费
        /// </summary>
        public int? UseFlag { get; set; }
        /// <summary>
        /// 结账状态
        /// </summary>
        public int? BussEvent { get; set; }
        /// <summary>
        /// 结账单号
        /// </summary>
        public int? BillNo { get; set; }
        /// <summary>
        /// 挂号收费标志（1挂号 2收费）
        /// </summary>
        public int? Flag { get; set; }
        /// <summary>
        /// 医保交易流水号
        /// </summary>
        public string? TradeSerialNo { get; set; }
        /// <summary>
        /// 预交金余额
        /// </summary>
        public decimal? PrepaidRemind { get; set; }
        /// <summary>
        /// 预交金支付
        /// </summary>
        public decimal? PrepaidPay { get; set; }
        /// <summary>
        /// 预交金支付表id
        /// </summary>
        public int? PrepaidId { get; set; }
        /// <summary>
        /// 数据来源
        /// </summary>
        public int? DataFrom { get; set; }
        /// <summary>
        /// 来源标记
        /// </summary>
        public int? FromFlag { get; set; }
        /// <summary>
        /// 比例
        /// </summary>
        public decimal? Rate { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal? DiscountAmount { get; set; }
        /// <summary>
        /// 收费流水号
        /// </summary>
        public long? ChargeNo { get; set; }
        /// <summary>
        /// 部分退费的原发票id
        /// </summary>
        public long? OriginalInvoiceId { get; set; }
        /// <summary>
        /// 机器编码
        /// </summary>
        public string? ComputerNo { get; set; }
        /// <summary>
        /// 终端类型
        /// </summary>
        public int? TerminalType { get; set; }
        /// <summary>
        /// 支付订单号
        /// </summary>
        public string? PayOrderNo { get; set; }
        /// <summary>
        /// 退费订单号
        /// </summary>
        public string? ReturnOrderNo { get; set; }
        /// <summary>
        /// 发药窗口
        /// </summary>
        public string? DispensingWindow { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 创建人员编号
        /// </summary>
        public int? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedDate { get; set; }
        /// <summary>
        /// 更新人员编号
        /// </summary>
        public int? UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 退费人员编号
        /// </summary>
        public int? ReturnOpCode { get; set; }
        /// <summary>
        /// 退费时间
        /// </summary>
        public DateTime? ReturnOpTime { get; set; }
        /// <summary>
        /// 发药科室
        /// </summary>
        public int? DrugDept { get; set; }
        /// <summary>
        /// 医院编码
        /// </summary>
        public int? HospitalCode { get; set; }
        /// <summary>
        /// 序列号
        /// </summary>
        public long? SerialNo { get; set; }
        /// <summary>
        /// 门诊号
        /// </summary>
        public long? MzNo { get; set; }
        /// <summary>
        /// 科室类别
        /// </summary>
        public short? DeptKind { get; set; }
        /// <summary>
        /// 记账金额
        /// </summary>
        public decimal? JzPay { get; set; }
        /// <summary>
        /// 开立处方医生
        /// </summary>
        public int? RecipeDoctor { get; set; }
        /// <summary>
        /// 开立处方科室
        /// </summary>
        public int? RecipeDept { get; set; }
        /// <summary>
        /// 账户标识
        /// </summary>
        public string? AccountFlag { get; set; }
        /// <summary>
        /// 药房信息
        /// </summary>
        public string? DrugInfo { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        public int? PayType { get; set; }
        /// <summary>
        /// 打印次数
        /// </summary>
        public int? PrintCount { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? RemarkAi { get; set; }
        public decimal? PrepaidCardPay { get; set; }
        public decimal? DiffAmount { get; set; }
        public bool? IsDebitPay { get; set; }
        public decimal? DebitAmt { get; set; }
        public int? DebitStatus { get; set; }
        public decimal? DebitCheckoutAmt { get; set; }
        public DateTime? DebitCheckoutDate { get; set; }
        public int? DebitCheckoutOpId { get; set; }
        public long? DebitCheckoutInvoiceId { get; set; }
    }
}
